import { createApp } from 'vue'
import App from './App.vue'

import router from './router';
import ElementUI from 'element-plus' // 依赖
import 'element-plus/dist/index.css' // 样式依赖
import * as ElIcons from '@element-plus/icons-vue'  // 引入图标


const app =createApp(App).use(ElementUI).use(router)
for(const iconName in  ElIcons) {
    app.component(iconName, ElIcons[iconName]);
}
app.mount('#app')